package com.hnas.trade.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.hnas.trade.dao.AbnormalOrderDao;
import com.hnas.trade.orm.AbnormalOrder;
import com.hnas.trade.service.AbnormalOrderService;

@Component("abnormalOrderService")
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
public class AbnormalOrderServiceImpl implements AbnormalOrderService{

	@Autowired
	private AbnormalOrderDao abnormalOrderDao;
	
	@Override
	public AbnormalOrder saveOrUpdate(AbnormalOrder vo) throws Exception {
		return this.abnormalOrderDao.saveOrUpdate(vo);
	}

	@Override
	public List<String> findAllAbnormalTranSnoByDate(String startDate, String endDate) {
		return abnormalOrderDao.findAllAbnormalTranSnoByDate(startDate,endDate);
	}

}
